package com.gepengjun.lims.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jun
 * @since 2018-09-07
 */
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;
    @TableField("role_name")
    private String roleName;
    private Boolean available;
    @TableField("role_desc")
    private String roleDesc;
    @TableField("last_upd_user")
    private Long lastUpdUser;
    @TableField("last_upd_time")
    private Date lastUpdTime;
    private String remark;


    public Long getRoleId() {
        return roleId;
    }

    public Role setRoleId(Long roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getRoleName() {
        return roleName;
    }

    public Role setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }

    public Boolean getAvailable() {
        return available;
    }

    public Role setAvailable(Boolean available) {
        this.available = available;
        return this;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public Role setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
        return this;
    }

    public Long getLastUpdUser() {
        return lastUpdUser;
    }

    public Role setLastUpdUser(Long lastUpdUser) {
        this.lastUpdUser = lastUpdUser;
        return this;
    }

    public Date getLastUpdTime() {
        return lastUpdTime;
    }

    public Role setLastUpdTime(Date lastUpdTime) {
        this.lastUpdTime = lastUpdTime;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public Role setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

    @Override
    public String toString() {
        return "Role{" +
        "roleId=" + roleId +
        ", roleName=" + roleName +
        ", available=" + available +
        ", roleDesc=" + roleDesc +
        ", lastUpdUser=" + lastUpdUser +
        ", lastUpdTime=" + lastUpdTime +
        ", remark=" + remark +
        "}";
    }
}
